FROM tomcat:8

LABEL MAINTAINER=wens
# adjust time
RUN echo "Asia/shanghai" > /etc/timezone
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN rm -rf /usr/local/tomcat/webapps/*

ADD target/xxl-job-admin-1.8.1.war /usr/local/tomcat/webapps

RUN mv /usr/local/tomcat/webapps/xxl-job-admin-1.8.1.war  /usr/local/tomcat/webapps/xxl-job-admin.war

